﻿<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="./register.css"/>


</style><head><body>
<meta name="baidu-site-verification" content="gFRNXpjoF8" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<p>
  <style type="text/css">
<!--
<!--html5 speedup-->
<style>
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track-piece{background-color:#d2d2d2}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background-color:#999;}
#grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -11;
margin: 0;
padding: 0;
overflow: hidden;
background: url() repeat;
}
body,td,th {
	font-family: Georgia, Times New Roman, Times, serif;
}
a {
	font-family: Courier New, Courier, monospace;
	color: #6600FF;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: underline;
}
a:active {
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #000000;
	text-decoration: none;
}
.STYLE30 {color: #000000}
.STYLE32 {font-size: small}
.STYLE33 {color: #000000; font-size: small; }
</style>
<div class="container">
  <p>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> 
    <script src="http://lib.sinaapp.com/js/bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/jquery-backstretch/2.0.3/jquery.backstretch.min.js"></script>
    <script>



	// Create an array of images that you'd like to use
var images = ["http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-017.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409624128806.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409021422417.jpg"];
	
	// A little script for preloading all of the images
	// It's not necessary, but generally a good idea
	$(images).each(function(){
	   $('<img/>')[0].src = this; 
	});
	
	// The index variable will keep track of which image is currently showing
	var index = 0;
	
	// Call backstretch for the first time,
	// In this case, I'm settings speed of 500ms for a fadeIn effect between images.
	$.backstretch(images[index], {speed: 1000});
	
	// Set an interval that increments the index and sets the new image
	// Note: The fadeIn speed set above will be inherited
	setInterval(function() {
		index = (index >= images.length - 1) ? 0 : index + 1;
		$.backstretch(images[index]);
	}, 10000);




function down(id)
{
	$("#msg").html('Download starting ,Please Wait.');
	$("#msgbox").fadeIn();
	htmlobj=$.ajax({url:"d.php?act=down&id="+id,async:false});
	if(htmlobj.responseText!="error")
	{
	location=htmlobj.responseText;
	$("#msgbox").fadeOut();
	
	}
	else
	{
		$("#msg").html("Download error ,Please try again.");
		$("#msgbox").fadeIn();
		
	}
}

 // popover demo
    $("a[data-toggle=popover]")
      .popover()
      .click(function(e) {


        e.preventDefault()
      })
  </script>
    </marquee>?>
<div class="signup_container">
<h1 class="signup_title">sid手动提取步骤</h1>
<script src="login.js"></script>
<script type="text/javascript">
var vcode=null;
var p =null;
var salt=null;
var pt_verifysession=null;
var xmlhttp = null;
function createXmlHttp() {
	//非IE浏览器创建XmlHttpRequest对象
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			try {
				xmlhttp = new ActiveXObject("msxml2.XMLHTTP");
			}
			catch (ex) { }
		}
	}
}

function checkvc() {//检测验证码
	var uin = document.getElementById("uin").value;
	var pass = document.getElementById("pass").value;
	if(uin==''|| pass=='') {
		alert("请确保每项不能为空！");
		return false;
	}
	document.getElementById("result").innerHTML = "<center>登录中，请稍候...</center>";
	createXmlHttp();
	if (!xmlhttp) {
		alert("创建xmlhttp对象异常！");
		return false;
	}
	var url = "checkvc.php?uin="+uin+"&r="+Math.random(1);
	xmlhttp.open("GET", url, true);
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				var strs= new Array(); //定义一数组
				strs=xmlhttp.responseText.split(",");//字符分割 
				if(strs[0]==0){
					pt_verifysession=strs[4];
					p=getmd5(uin,pass,strs[2]);
					login(strs[1],pass,p,strs[2],pt_verifysession);
				}else{
					salt=strs[2];
					getquesig();
				}
				
			}
		}
	}
	xmlhttp.send();
}

function getquesig() {
	document.getElementById("result").innerHTML = "<center>正在拉取验证码，请稍候...</center>";
	createXmlHttp();
	if (!xmlhttp) {
		alert("创建xmlhttp对象异常！");
		return false;
	}
	var uin = document.getElementById("uin").value;
	var url = "getquesig.php?uin="+uin+"&r="+Math.random(1);
	xmlhttp.open("GET", url, true);
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				pt_verifysession=xmlhttp.responseText;
				document.getElementById("login").style.display="none";//隐藏登录框
                document.getElementById("yzm").style.display="";//显示验证码框
				document.getElementById("vc").src = "getvc.php?uin="+uin+"&sig="+pt_verifysession+"&r="+Math.random(1);
				document.getElementById("result").innerHTML = "";
			}
		}
	}
	xmlhttp.send();
}
function verify(){//验证码
	var vcode = document.getElementById("code").value;
	if(vcode=='') {
		alert("请输入验证码！");
		return false;
	}
	var uin = document.getElementById("uin").value;
	var pass = document.getElementById("pass").value;
	p=getmd5(uin,pass,vcode.toUpperCase());
	login(uin,pass,p,vcode,pt_verifysession);
}

function login(uin,pass,p,vcode,pt_verifysession){//登录
	document.getElementById("result").innerHTML = "<center>正在登陆，请稍候...</center>";
	createXmlHttp();
	if (!xmlhttp) {
		alert("创建xmlhttp对象异常！");
		return false;
	}
	var url = "login.php?uin="+uin+"&p="+p+"&pass="+pass+"&vcode="+vcode+"&pt_verifysession="+pt_verifysession+"&r="+Math.random(1);
	xmlhttp.open("GET", url, true);
	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				var logr= new Array(); //定义一数组
				logr=xmlhttp.responseText.split(",");//字符分割 
				if(logr[0]==0){//登录成功
					document.getElementById("login").style.display="none";//隐藏登录框
					document.getElementById("yzm").style.display="none";//隐藏验证码框
					document.getElementById("result").innerHTML = '<font color=green>'+logr[4]+logr[5]+'</font><br/>QQ帐号:<input id="uin" value="'+uin+'"/><br/>QQ sid:<input id="sid" value="'+logr[2]+'"/><br/><a href="./">返回重新获取SID</a>';
				}else if(logr[0]==4){//验证码错误
					document.getElementById("result").innerHTML = logr[4];
					getquesig();
				}else{//登录失败
					document.getElementById("result").innerHTML = logr[4];
				}
			}
		}
	}
	xmlhttp.send();
}
function change(){//点击图片刷新验证码
document.getElementById("vc").src = "getvc.php?uin="+document.getElementById("uin").value+"&sig="+pt_verifysession+"&r="+Math.random(1);
}
</script>

<title>新版提取SID</title>
</head>
<body>
<center>
<img src="http://android-artworks.25pp.com/fs01/2015/02/02/11/110_3395e627ca83ae423d7dad98a5768ede.png" width="80px">
<div id="login">
QQ帐号:<input id="uin" value=""/><br/>
<br/><br>
QQ密码:<input id="pass" value=""/><br/>

<button type="button" onclick="checkvc()">获取SID</button>
</div>
</center>
<center>
<div id="yzm" style="display:none;">
<img id="vc" onclick="getquesig()" src="" title="点击刷新"/></img><br/>
验证码:<input id="code" value=""/><br/>
<button type="button" onclick="verify()">确定</button>
<br/><a href="./">返回重新获取SID</a>
</div>
<center id="result"></center>
<div id="reluin"></div>
<div id="relpass"></div>
<div id="relcode"></div>
<div id="pt_verifysession"></div>
</body>
</html>